package com.j.lemon.learn.basic.practice;

import org.springframework.beans.factory.annotation.Value;

public class Studen {

    public void ini(){
        System.out.println("ini");
    }

    @Value("#{T(java.lang.Math).PI}")
    public double pi;

    @Value("#{T(java.lang.Math).random()}")
    public double random;

    @Value("#{1}")
    private long id;

    @Value("#{'hhh'}")
    private String name;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name+random;
    }

    public void setName(String name) {
        this.name = name;
    }
}
